import 'package:aio/aio.dart';

///读取粘贴板里的服务器地址和邀请码(安装代码)
///{"Api":"http://test.app.bwg2017.com/","Code":"234-ZH"}
class ServerCode extends BaseBean {
  //域名地址
  String Api = "";

  ///邀请码（安装代码）
  String Code = "";

  @override
  fromJson(Map<String, dynamic> json) {
    Api = json["Api"]?.toString() ?? "";
    Code = json["Code"]?.toString() ?? "234-ZH";
  }

  @override
  instance() {
    return ServerCode();
  }

  @override
  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["Api"] = Api;
    map["Code"] = Code;
    return map;
  }
}
